package task14;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/13 11:18
 * @description: 实现接口
 * 1.implements
 * 2.必须重写接口中的所有方法
 */
public class Cat extends Animal implements Pet, Police {

  @Override
  public void beFriendly() {
    System.out.println("Cat 很友好");
  }

  @Override
  public void paly() {
    System.out.println("Cat 陪我玩");
  }

  @Override
  public void speak() {
    System.out.println("emmmmmmmmm");
  }
  @Override
  public void catching() {
    System.out.println("Cat能抓坏蛋");
  }
}
